
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>

    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/css/layui.css">
</head>
<body>
<form action="${pageContext.request.contextPath}/login" method="post">
    用户名： <input type="text" name="username" value = ${username}> <br>
    密码： <input type="password" name="password" value = ${password}> <br>
<%--    压面在加载的时候  就发送请求 获取验证码了--%>
    验证码： <input type="text" name="checkcode">  <img src="${pageContext.request.contextPath}/createcode" /> <br>
    <span>${msg}</span>
    <input class="layui-btn" type="submit" value="登录">
    <button type="button" class="layui-btn">标准的按钮</button>
</form>
</body>

<script src="${pageContext.request.contextPath}/layui/layui.js"></script>
</html>
